# -*- coding: utf-8 -*-
# @file    : exception.py
# @Date    : 2020/10/21
# @Author  :
# @Version : 1.0.0


class ScriptError(Exception):
    """脚本异常
    TODO 完善异常捕获和错误输出
    """
    pass


class StopGroup(Exception):
    """停止动作组执行"""
    pass


class BreakGroup(Exception):
    """中断本次动作组"""
    pass


class SkipAction(Exception):
    """跳过后续的N个动作"""

    def __init__(self, *args, num=1):
        super(SkipAction, self).__init__(*args)
        self.num = num
